package com.sq.partner.manager.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.ActirationCardBatchInsuredDao;
import com.sq.partner.manager.mybatis.model.ActirationCardBatchInsuredDto;

/**
 * 批量激活投保信息Dao实现
 * 
 * SQ
 *
 */
@Repository
public class ActirationCardBatchInsuredDaoImpl extends BaseDaoImpl implements ActirationCardBatchInsuredDao {

    /**
     * 取得批量投保信息
     * 
     * @param stagNo
     * @return
     * @throws Exception
     */
    @SuppressWarnings("unchecked")
    @Override
    public List<ActirationCardBatchInsuredDto> getBatchInsuredList(String stagNo)
            throws Exception {
        return (List<ActirationCardBatchInsuredDto>) this.queryList(
                "getBatchInsuredList", stagNo);
    }
    
    /**
     * 删除批量投保信息
     * @param stagNo
     * @throws Exception
     */
    @Override
    public void deleteBatchInfos(String stagNo) throws Exception {
        Map<String,String> param = new HashMap<String,String>();
        param.put("stagNo",stagNo);
        this.delete("deleteBatchInfosByStagNo", param);
    }
}
